#ifndef __PUZZLEGAMEUTILS_H__
#define __PUZZLEGAMEUTILS_H__

#include "PuzzleGuess.h"
#include "cocos2d.h"

NS_GAME_BEGIN

class UniqueRandom
{
protected:
	std::vector<std::pair<int,int>> randomSeeds;
	int nextRandomIndex;
public :
	UniqueRandom();
	~UniqueRandom();
	void setSeed(int begin,int end);
	int nextRandom();
};

class PuzzleGameUtils  
{
public:
	static int randomInt(int minNum,int maxNum ); 
	static bool hitTest(cocos2d::Node *node,cocos2d::Touch *touch);
	static float getDistance(cocos2d::Point p1,cocos2d::Point p2);
}; 

NS_GAME_END

#endif	//__PUZZLEGAMEUTILS_H__